package com.lqq.repository;

import com.lqq.entity.LogEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author liangqq
 */
@Repository
public interface LogRepository extends JpaRepository<LogEntity, Long> {

    /**
     * 两个时间之间的数据
     * @param localDateTime1
     * @param localDateTime2
     * @return
     */
    List<LogEntity> findByAddDateBetween(LocalDateTime localDateTime1, LocalDateTime localDateTime2);
}
